import { get, post } from './http.js'
const HttpManager={
	InitselectSchool: () => get(`/schoolAdmin/selectSchool`),
	InitselectStudent:(parmas)=>get(`/student/selectStudent`,parmas),
	selectTeacher:(parmas)=>get(`/teacher/selectTeacher`,parmas),
	selectStudentPageNum:(parmas)=>get("/student/getCourseStudentList",parmas),//查找该搜索条件下数据的页数
	//获取所有的学院
	SelectCollegeListBySchoolId:(parmas)=>get('/college/selectCollegeListBySchoolId',parmas),
	SelectMajorListByCollegeId:(parmas)=>get('/major/selectMajorListByCollegeId',parmas),
	InsertStudent:(parmas)=>post('/student/insertStudent',parmas),
	InsertTeacher:(parmas)=>post('/teacher/insertTeacher',parmas),
	insertCollege:(params)=>post("/college/insertCollege",params),//添加学院list
	insertMajor:(parmas)=>post("/major/insertMajor",parmas),//添加学院list
	deleteMajor:(parmas)=>post("/major/deleteMajor",parmas),//删除专业
	changeMajorName:(params)=>post("/major/changeMajorName",params),//修改专业名
	deleteCollege:(parmas)=>post("/college/deleteCollege",parmas),//删除学院
	changeCollegeName:(parmas)=>post("/college/changeCollegeName",parmas),//修改学院名
	deleteTeacher:(parmas)=>post("/teacher/deleteTeacher",parmas),//删除老师
	deleteStudent:(parmas)=>post("/student/deleteStudent",parmas),//删除学生
	//课程 班级
	CreatCourse:(parmas,chapterNumber,periodNumber)=>post('/education/course/creatCourse?chapterNumber='+chapterNumber+'&periodNumber='+periodNumber,parmas),
	getCourseByTeacher:()=>get('/education/course/getCourseByTeacherId'),
	creatClazzByTeacher:(parmas)=>post('/education/clazz/creatClazzByTeacher',parmas),//老师创建班级
	getClazzByCourseId:(parmas)=>post('/education/clazz/getAllClazz',parmas),//获取课程下面的所有的班级
	getStudentsByClazzId:(parmas)=>get('/education/clazz/getStudentsByClazzId',parmas),//获取班级下面的学生
	addStudentToClazzByPhone:(parmas)=>post('/education/clazz/addStudentToClazzByPhone',parmas),//手机号添加学生
    deleteStudentFromClazz:(parmas)=>post('/education/clazz/deleteStudentFromClazz',parmas),//删除班级里的成员
	changeStudentClazz:(parmas)=>post('/education/clazz/changeStudentClazz',parmas),//改变学生所在的班级
	deleteClazzById:(clazzId)=>post("/education/clazz/deleteClazzById?clazzId="+clazzId),//删除班级
    getCourseTeachers:(courseId)=>get("/education/course/getCourseTeachers?courseId="+courseId),//获取课程教师团队
    changeStudentClazz:(parmas)=>post("/education/clazz/changeStudentClazz",parmas),//改变学生所在班级
    getCourseStudentList:()=>get("/student/getCourseStudentList"),//课程获取已经注册的学生信息，用于添加入课程
   //章节
   getChapterByCourseId:(parmas)=>get("/education/chapter/getChapterByCourseId",parmas),//通过课程id获取章节
   getPeriodByChapterId:(params)=>get("/education/period/getPeriodByChapterId",params),//通过章节id获取课时
   creatChapterForCourse:(parmas,periodNum)=>post("/education/chapter/creatChapterForCourse?periodNum="+periodNum,parmas),//为课程添加章节
   deleteChapter:(chapterId)=>post("/education/chapter/deleteChapter?chapterId="+chapterId),//删除章节
   updateChapterInf:(params)=>post("/education/chapter/updateChapterInf",params),//修改章节
   creatPeriod:(params)=>post("/education/period/creatPeriod",params),//创建课时
   deletePeriodById:(periodId)=>post("/education/period/deletePeriodById?periodId="+periodId),//根据id删除课时
   updatePeriodById:(params)=>post("/education/period/updatePeriodById",params),//修改课时信息
  
   //作业
   getTaskByCourseAndClazz:(params)=>get("/education/task/getTaskByCourseAndClazz",params),//老师根据课程获取任务
   deleteTaskByClazzIdTaskId:(params)=>post("/education/task/deleteTaskByClazzIdTaskId",params),//删除部分任务
   getTaskDireGroupBy:(courseId)=>get("/education/course/getTaskDireGroupByTeacherByCourseId?courseId="+courseId),//根据课程id获取课程下教师任务目录
   getTaskByCourseIdAndPhone:(courseId,phone)=>get("/education/task/getTaskByCourseIdAndPhone?courseId="+courseId+"&phone="+phone),//根据课程id跟教师手机号获取教师发布的任务
   creatTask:(parmas)=>post("/education/task/creatTask",parmas),
   addTaskToClazz:(examId,parmas)=>post("/education/task/addTaskToClazz?taskId="+examId,parmas),
   deleteTaskByClazzIdTaskId:(params)=>post("/education/task/deleteTaskByClazzIdTaskId",params),//删除题库中试卷
   //考试
   getExamByCourseAndClazz:(params)=>get("/education/exam/getExamByCourseAndClazz",params),//教师根据班级id与课程id获取考试
   deleteExamByClazzIdExamId:(params)=>post("/education/exam/deleteExamByClazzIdExamId",params),//调试教师根据班级id与考试id删除目标班级考试
   faceCardResultList:(examId)=>get("/monitor/faceCardResultList",examId),//获取考前认证对比结果列表
   getExamAbnormal:(examId)=>get("/monitor/getExamAbnormal",examId),//获取考场异常行为记录
   getExamByCourseId:(params)=>get("/education/exam/getExamByCourseId",params),//教师根据课程获取考试
   getExamDireGroupByTeacherByCourseId:(courseId)=>get("/education/course/getExamDireGroupByTeacherByCourseId?courseId="+courseId),//根据课程id获取课程下教师考试目录
   getExamByCourseIdAndPhone:(courseId,phone)=>get("/education/exam/getExamByCourseIdAndPhone?courseId="+courseId+"&phone="+phone),//根据课程id跟教师手机号获取教师发布的任务
   creatExam:(params)=>post("/education/exam/creatExam",params),//发布考试
   addExamToClazz:(examId,params)=>post("/education/exam/addExamToClazz?examId="+examId,params),//给班级添加考试
   deleteExam:(examIds)=>post("/education/exam/deleteExam",examIds),//删除部分考试
   deleteExamByClazzIdExamId:(parmas)=>post("/education/exam/deleteExamByClazzIdExamId",parmas),
  　getUserByExam:(parmas)=>get("/monitor/getUserByExam",parmas),//获取考试中被截取人脸的用户的基本信息（用于列表显示）
   getExamFace:(parmas)=>get("/monitor/getExamFace",parmas),//获取用户考试人脸截取记录
   //试卷库
   getMyAllQuestionBank:()=>get("/education/questionBank/getMyAllQuestionBank"),//获取自己所有的试题库
   addTestPaperToBank:(params)=>post("/education/questionBank/addTestPaperToBank",params),//给题库添加试卷
   creatQuestion:(params)=>post("/education/questionBank/creatQuestion",params),//创建试题库
   deleteBank:(params)=>post("/education/questionBank/deleteBank",params),//删除试题库
   getTestPapersByBankId:(params)=>get("/education/questionBank/getTestPapersByBankId",params),//根据题库id获取试卷信息
   deleteTestPaperFromBank:(params)=>post("/education/questionBank/deleteTestPaperFromBank",params),//删除题库中试卷
   deleteTask:(taskIds)=>post("/education/task/deleteTask",taskIds),//删除部分任务
   
   //收藏试题列表
   collectQuestionList:(parmas)=>post("/question/collectQuestionList",parmas),
   cancelCollectQuestion:(parmas)=>post("/question/cancelCollectQuestion",parmas),//取消收藏试题
   updateExamByCourseId:(parmas)=>post("/education/exam/updateExamByCourseId",parmas),//根据id修改起止时间与提交进入时间
   updateTaskByCourseId:(params)=>post("/education/task/updateTaskByCourseId",params),//根据id修改起止时间与提交进入时间

   //课程
   getCourseInfByCourseId:(parmas)=>get("/education/course/getCourseInfByCourseId",parmas),//根据课程id获取课程下相关信息
   getSchoolIdByUserId:()=>get("/education/course/getSchoolIdByUserId"),//根据用户id获取学校id

   //老师邀请其他老师管理课程
   addTeacherToCourse:(courseId,phones)=>post("/education/course/addTeacherToCourse?courseId="+courseId,phones),
   getCourseTeacherList:(parmas)=>get("/teacher/getCourseTeacherList",parmas),//课程获取已经注册的教师信息，用于添加入课程
   //批量添加学生进入班级
   addStudentsToClazzByPhone:(clazzId,phones)=>post("/education/clazz/addStudentsToClazzByPhone?clazzId="+clazzId,phones),
   updateCourse:(params)=>post("/education/course/updateCourse",params),//老师修改课程信息  
   updateCourseProp:(params)=>post("/education/course/updateCourseProp",params),//教师修改课程占比参数
   
   //获取学生作业完成情况
   getAllStudentTaskStatusByTaskId:(parmas)=>get("/education/task/getAllStudentTaskStatusByTaskId",parmas),//获取学生任务完成状态
   getUnfinishedStudentsInfByTaskId:(parmas)=>get("/education/task/getUnfinishedStudentsInfByTaskId",parmas),
   studentSubmitChapterTest:(parmas,spendTime,chapterTestId)=>post("/education/chapterTest/studentSubmitChapterTest?chapterTestId="+chapterTestId+"&spendTime="+spendTime,parmas),

   //教师通过课程id获取课程统计基本信息
   getCourseStatisticsBasicInformation:(courseId)=>get("/education/course/getCourseStatisticsBasicInformation",courseId),
   getPerStaGroupByClazzId:(parmas)=>get("/education/course/getPerStaGroupByClazzId",parmas),
   getAllStudentLearningProcess:(parmas)=>get("/education/course/getAllStudentLearningProcess",parmas),//教师根据课程id与班级id获取班级学生的学习进度
}
export {HttpManager};